package common.jsondata.impl;

public enum ResultEnum {
	SUCCESS(0,"成功"),

    PARAM_ERROR(1,"参数不正确"),
    
    PARAM_IS_EMPTY(2,"参数为空"),

    ADD_ERROR(11,"新增失败"),

    DELETE_ERROR(12,"删除失败"),

    UPDATE_ERROR(13,"更新失败"),

    DATA_NOT_EXIST(14,"数据不存在"),

    PAPER_FORM_ERROR(21,"试卷生成失败"),
    
    PAPER_PUBLISH_ERROR(22,"试卷发布失败"),
    
    PAPER_ALREAD_SUBMIT(31,"试卷已提交"),
    
    PAPER_TIMEOUT(32,"试卷已过期"),
    
    PAPER_DISTRIBUTE_ERROR(33,"未分配试卷"),
    ;

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

    
}